package com.yida.wy.vote.outside.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author lqq
 * @date 2023-03-27
 */
@ApiModel("投票结果详情投票选项统计输出")
public class WyVoteResultDetailOptionCountDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票选项ID")
	private String optionId;

	@ApiModelProperty("投票选项名称")
	private String optionName;

	@ApiModelProperty("有效总票数")
	private Integer validVoteCount;

	@ApiModelProperty("票数")
	private Integer voteCount;

	@ApiModelProperty("得票权数（建筑面积）㎡")
	private BigDecimal totalSize;

	@ApiModelProperty("票数占比")
	private BigDecimal voteNumPercent;

	public Integer getValidVoteCount() {
		return validVoteCount;
	}

	public void setValidVoteCount(Integer validVoteCount) {
		this.validVoteCount = validVoteCount;
	}

	public BigDecimal getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(BigDecimal totalSize) {
		this.totalSize = totalSize;
	}

	public BigDecimal getVoteNumPercent() {
		return voteNumPercent;
	}

	public void setVoteNumPercent(BigDecimal voteNumPercent) {
		this.voteNumPercent = voteNumPercent;
	}

	public String getOptionId() {
		return optionId;
	}

	public void setOptionId(String optionId) {
		this.optionId = optionId;
	}

	public String getOptionName() {
		return optionName;
	}

	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}

	public Integer getVoteCount() {
		return voteCount;
	}

	public void setVoteCount(Integer voteCount) {
		this.voteCount = voteCount;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteResultDetailOptionCountDTO{");
		sb.append("optionId=").append(optionId);
		sb.append(", optionName='").append(optionName).append('\'');
		sb.append(", voteCount=").append(voteCount);
		sb.append(", totalSize=").append(totalSize);
		sb.append(", voteNumPercent=").append(voteNumPercent);
		sb.append('}');
		return sb.toString();
	}
}
